package com.whmall.service.crm.module.company.dao;

import com.whmall.component.mybatis.mapper.BatchMapper;
import com.whmall.service.crm.entity.dto.company.CompanyNoTypeRspDTO;
import com.whmall.service.crm.module.company.entity.CompanyDO;
import com.whmall.service.crm.module.company.entity.qo.CompanyQO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CompanyMapper extends BatchMapper<CompanyDO> {

    CompanyDO getByName(String name);

    List<CompanyDO> getByIds(@Param("list") List<Long> list);

    List<CompanyDO> listKeyFieldBy(CompanyQO qo);

    List<CompanyDO> listByAssocEmployeeId(CompanyQO qo);

    List<CompanyDO> query4TestingOrderJobHandler();

    List<CompanyDO> statisticTraderCustomerNumber(CompanyQO qo);

    int updateByIds(CompanyQO qo);

    int getInDevelopCount(Long id);

    List<CompanyDO> listBy(CompanyQO qo);

    List<CompanyNoTypeRspDTO> listNoCompanyTypeCustomerList();

    List<Long> selectByIdsShareLock(List<Long> idList);


}
